//
// CondVar.hpp for  in /home/herpec_j/Dropbox/Projets/raytracer-2016/Includes/DesignPattern/ThreadPool/
//
// Made by Jonathan
// Login   <ledey_l@epitech.net>
//
// Started on  Fri Sep 20 13:39:36 2013 Jonathan
// Last update Fri Sep 20 13:47:40 2013 Jonathan
//

#ifndef			CONDVAR_HPP_
# define		CONDVAR_HPP_

# include		<pthread.h>

namespace		DesignPattern
{
  namespace		ThreadPool
  {
    class		CondVar
    {
    private:
      CondVar(CondVar const &rCopy);
      CondVar		&operator=(CondVar const &rCopy);

      pthread_cond_t	mCondVar;

    protected:

    public:
      CondVar(void);
      ~CondVar(void);

      void		Wait(pthread_mutex_t *rMutex);
      void		Signal(void);
      void		Broadcast(void);
    };
  };
};

#endif			/* CONDVAR_HPP_ */
